package org.skipper.knife4j;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author shoujian
 * Date: 2020-04-09
 * Time: 3:15 下午
 */
@Data
@Component
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {

    /**
     * 案卷
     */
    private Docket docket;

    /**
     * 标签代码
     */
    private TagCode tagCode;

    /**
     * 标题
     */
    private String title;

    /**
     * 错误码相关配置
     */
    @Data
    public static class TagCode {
        private String name;

        @Override
        public String toString() {
            return "TagCode{" +
                    "name='" + name + '\'' +
                    '}';
        }

    }

    /**
     * swagger中docket相关配置
     */
    @Data
    public static class Docket {
        private Boolean enable;

        @Override
        public String toString() {
            return "Docket{" +
                    "enable=" + enable +
                    '}';
        }

    }


}
